package com.zhkeshe.keshe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhkeshe.keshe.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select *from [User] where id=#{id}")
    public User selectById_my(Integer id);

    @Select("select *from [User] where UserName=#{UserName}")
    public User selectByUserName(String UserName);
    @Insert("INSERT INTO [user] ( UserName, Password) VALUES ( #{UserName}, #{password})")
    public void insertUser(User user);
}
